package com.jvyou.pms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.List;
import com.jvyou.common.response.Page;
import com.jvyou.pms.domain.entity.JhyJhyzdxx;
import com.jvyou.pms.service.JhyJhyzdxxService;
import com.jvyou.pms.mapper.JhyJhyzdxxMapper;
import com.jvyou.pms.domain.dto.JhyJhyzdxxDto;

/**
 * (JhyJhyzdxx)表服务实现类
 *
 * @author 橘柚
 * @since 2025-06-29 01:20:30
 */
@RequiredArgsConstructor
@Service("jhyJhyzdxxService")
public class JhyJhyzdxxServiceImpl extends ServiceImpl<JhyJhyzdxxMapper, JhyJhyzdxx> implements JhyJhyzdxxService {

    /**
     * 构建查询条件包装器
     * @param dto 查询参数
     * @return QueryWrapper
     */
    private QueryWrapper<JhyJhyzdxx> getWrapper(JhyJhyzdxxDto dto) {
        QueryWrapper<JhyJhyzdxx> ew = new QueryWrapper<>();
        return ew;
    }

    @Override
    public List<JhyJhyzdxx> listJhyJhyzdxx(JhyJhyzdxxDto dto) {
        return list(getWrapper(dto));
    }

    @Override
    public Page<JhyJhyzdxx> pageJhyJhyzdxx(JhyJhyzdxxDto dto) {
        IPage<JhyJhyzdxx> page = dto.toPage();
        page = page(page, getWrapper(dto));  
		return Page.convert(page);
    }

}
